package com.ruoyi.common.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.business.entity.YytHomeSubjectSpu;
import com.ruoyi.common.business.dao.YytHomeSubjectSpuMapper;
import com.ruoyi.common.business.service.YytHomeSubjectSpuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* <p>
    * 专题商品 服务实现类
    * </p>
*
* @author huangshun
* @since 2021-12-16
*/
@Service
public class YytHomeSubjectSpuServiceImpl extends ServiceImpl<YytHomeSubjectSpuMapper, YytHomeSubjectSpu> implements YytHomeSubjectSpuService {

    @Autowired
    private YytHomeSubjectSpuMapper yytHomeSubjectSpuMapper;


    @Override
    public List<YytHomeSubjectSpu> selectYytHomeSubjectSpuList(YytHomeSubjectSpu yytHomeSubjectSpu) {
        // 新代码
        QueryWrapper<YytHomeSubjectSpu> wrapper = new QueryWrapper<>();
        wrapper.eq("spu_id", yytHomeSubjectSpu.getSpuId());
        return yytHomeSubjectSpuMapper.selectList(wrapper);
    }
}
